package com.vcs.frm.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.vcs.frm.domain.City;

public class CityRowMapper implements RowMapper<City>{

	@Override
	public City mapRow(ResultSet rs, int rowNum) throws SQLException {
		City city = new City();
		city.setCityId(rs.getInt("CITY_ID"));
		city.setCityName(rs.getString("CITY_NAME"));
		city.setStateId(rs.getInt("STATE_ID"));
		return city;
	}
	
}
